<{include file="admincp_header.htm"}>
<body>
<div class="block"></div>
<form name="editspider" action="spider.php?action=savespidercontent" method="POST">
<input type="hidden" name="id" value="<{$id}>">
<table border="0" align="center" cellpadding="4" cellspacing="1" class="commontable width100">
	<tr class="header">
		<td colspan="2"><div class="righttop"><a href="http://www.akcms.com/manual/spider.htm" target="_blank"><{$lan.help}></a></div><{$lan.spidercontentrule}> [<a href='spider.php?action=previewspidercontent&id=<{$id}>'><{$lan.preview}></a>]</td>
	</tr>
	<tr>
		<td><{$lan.name}></td>
		<td><input type="text" value="<{$name}>" name="name" class="mustoffer"></td>
	</tr>
	<tr>
		<td><{$lan.spiderexampleurl}></td>
		<td><input type="text" value="<{$url}>" size="64" name="url"></td>
	</tr>
	<tr>
		<td><{$lan.character}></td>
		<td><textarea name="character" cols="50" rows="5"><{$character}></textarea></td>
	</tr>
	<tr>
		<td><{$lan.skip}></td>
		<td><textarea name="skip" cols="50" rows="5"><{$skip}></textarea></td>
	</tr>
	<tr>
		<td><{$lan.replace}></td>
		<td><textarea name="replace" cols="50" rows="5"><{$replace}></textarea></td>
	</tr>
	<tr>
		<td><{$lan.skip}> SQL Where</td>
		<td><textarea name="skipwhere" cols="50" rows="5"><{$skipwhere}></textarea></td>
	</tr>
</table>
<div class="block"></div>
<table border="0" align="center" cellpadding="4" cellspacing="1" class="commontable width100">
	<tr class="header">
		<td colspan="20"><{$lan.spiderfield}></td>
	</tr>
	<tr>
		<td width="15">ID</td>
		<td><{$lan.spiderstartcharacter}></td>
		<td><{$lan.spiderendcharacter}></td>
		<td>TXT</td>
		<td><{$lan.cleartag}></td>
		<td><{$lan.clearspace}></td>
		<td>Trim</td>
		<td><{$lan.spiderpic}></td>
		<td><{$lan.repeat}></td>
	</tr>
<{foreach from=$ids item=id}>
	<tr>
		<td><{$id}></td>
		<td><input name="start<{$id}>" value="<{$start.$id}>" type="text" size="30"></td>
		<td><input name="end<{$id}>" value="<{$end.$id}>" type="text" size="30"></td>
		<td><input id="html2txt<{$id}>" name="html2txt<{$id}>" value="1" type="checkbox"></td>
		<td><input name="keeptag<{$id}>" value="<{$keeptag.$id}>" type="text" size="19"></td>
		<td><input id="killrepeatspace<{$id}>" name="killrepeatspace<{$id}>" value="1" type="checkbox"></td>
		<td><input id="trim<{$id}>" name="trim<{$id}>" value="1" type="checkbox"></td>
		<td><input id="spiderpic<{$id}>" name="spiderpic<{$id}>" value="1" type="checkbox"></td>
		<td><input name="repeat<{$id}>" value="<{$repeat.$id}>" type="text" size="5"></td>
	</tr>
<script>
if("<{$trim.$id}>" == "1") $("trim<{$id}>").checked = true;
if("<{$html2txt.$id}>" == "1") $("html2txt<{$id}>").checked = true;
if("<{$killrepeatspace.$id}>" == "1") $("killrepeatspace<{$id}>").checked = true;
if("<{$spiderpic.$id}>" == "1") $("spiderpic<{$id}>").checked = true;
</script>
<{/foreach}>
</table>
<div class="block"></div>
<table border="0" align="center" cellpadding="4" cellspacing="1" class="commontable width100">
	<tr class="header">
		<td colspan="20"><{$lan.pagebreak}></td>
	</tr>
	<tr>
		<td><{$lan.spiderstartcharacter}></td>
		<td><input type="text" name="pagebreakstart" value="<{$pagebreakstart}>" size="50" class="mustoffer"></td>
	</tr>
	<tr>
		<td><{$lan.spiderendcharacter}></td>
		<td><input type="text" name="pagebreakend" value="<{$pagebreakend}>" size="50"></td>
	</tr>
	<tr>
		<td><{$lan.pagebreakcharacter}></td>
		<td><input type="text" name="pagebreakcharacter" value="<{$pagebreakcharacter}>" size="50"></td>
	</tr>
	<tr>
		<td><{$lan.pagebreakreplace}></td>
		<td><input type="text" name="pagebreakreplace" value="<{$pagebreakreplace}>" size="50"> (<a href="http://www.akcms.com/manual/spider.htm" target="_blank"><{$lan.help}></a>)</td>
	</tr>
	<tr>
		<td><{$lan.bandcontentid}></td>
		<td><select id="pagebreakfield" name="pagebreakfield"><option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select><script>$("pagebreakfield").value = <{$pagebreakfield}>;</script></td>
	</tr>
</table>
<div class="block"></div>
<table border="0" align="center" cellpadding="4" cellspacing="1" class="commontable width100">
	<tr class="header">
		<td colspan="20"><{$lan.save}></td>
	</tr>
	<tr>
		<td><{$lan.title}></td>
		<td><input type="text" name="title" value="<{$title}>" class="mustoffer"></td>
	</tr>
	<tr>
		<td><{$lan.shorttitle}></td>
		<td><input type="text" name="shorttitle" value="<{$shorttitle}>"></td>
	</tr>
	<tr>
		<td><{$lan.aimurl}></td>
		<td><input type="text" name="aimurl" value="<{$aimurl}>"></td>
	</tr>
	<tr>
		<td><{$lan.time}></td>
		<td><input type="text" name="dateline" value="<{$dateline}>"></td>
	</tr>
	<tr>
		<td><{$lan.filename}></td>
		<td><input type="text" name="filename" value="<{$filename}>"></td>
	</tr>
	<tr>
		<td><{$lan.author}></td>
		<td><input type="text" name="author" value="<{$author}>"></td>
	</tr>
	<tr>
		<td><{$lan.source}></td>
		<td><input type="text" name="source" value="<{$source}>"></td>
	</tr>
	<tr>
		<td><{$lan.editor}></td>
		<td><input type="text" name="editor" value="<{$editor}>"></td>
	</tr>
	<tr>
		<td><{$lan.digest}></td>
		<td><input type="text" name="digest" value="<{$digest}>"></td>
	</tr>
	<tr>
		<td><{$lan.data}></td>
		<td><input type="text" name="data" value="<{$data}>"></td>
	</tr>
	<tr>
		<td><{$lan.keywords}></td>
		<td><input type="text" name="keywords" value="<{$keywords}>"></td>
	</tr>
	<tr>
		<td><{$lan.picture}></td>
		<td><input type="text" name="picture" value="<{$picture}>"></td>
	</tr>
	<tr>
		<td><{$lan.comment}></td>
		<td><input type="text" name="comment" value="<{$comment}>"></td>
	</tr>
	<tr>
		<td><{$lan.order}>1</td>
		<td><input type="text" name="orderby" value="<{$orderby}>"></td>
	</tr>
	<tr>
		<td><{$lan.order}>2</td>
		<td><input type="text" name="orderby2" value="<{$orderby2}>"></td>
	</tr>
	<tr>
		<td><{$lan.order}>3</td>
		<td><input type="text" name="orderby3" value="<{$orderby3}>"></td>
	</tr>
	<tr>
		<td><{$lan.order}>4</td>
		<td><input type="text" name="orderby4" value="<{$orderby4}>"></td>
	</tr>
	<tr class="header">
		<td colspan="20"><{$lan.extfields}></td>
	</tr>
<{foreach from=$ids item=id}>
	<tr>
		<td><{$id}>. <input type="text" name="extname<{$id}>" size="10" value="<{$extname.$id}>"></td>
		<td><input type="text" name="extvalue<{$id}>" value="<{$extvalue.$id}>"></td>
	</tr>
<{/foreach}>
</table>
<div class="block"></div>
<center><input type="submit" value="<{$lan.save}>"></center>
</form>
</body>
</html>